/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package beans;

import dto.Filteredposts;
import dto.JfMembers;
import dto.Posts;
import dto.Readmark;
import dto.Sections;
import dto.Topics;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import java.util.Vector;
import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;

/**
 *
 * @author Amir
 */
public class ViewTopicBean extends org.apache.struts.action.ActionForm {
    


    //=================================
        private Integer topicid;
	private JfMembers jfMembers;
	private Sections sections;
	private String topicname;
	private Date creationdate;
	private Date modifydate;
	private Integer numofposts;
	private Integer ispublic;
	private Integer isclosed;
	private Integer numlurkers;
	private Integer issticky;
	private Integer ispopular;
	private Integer numofviews;
	private Set<Posts> postses = new HashSet<Posts>(0);
	private Set<Filteredposts> filteredpostses = new HashSet<Filteredposts>(0);
	private Set<Readmark> readmarks = new HashSet<Readmark>(0);
         private String username;
        private boolean readmark;
         private Posts postes[];
         private Vector<Sections> allSections;
         private int preventSpamCheck;

        public ViewTopicBean()
    {
        
    }

    public int getPreventSpamCheck() {
        return preventSpamCheck;
    }

    public void setPreventSpamCheck(int preventSpamCheck) {
        this.preventSpamCheck = preventSpamCheck;
    }
        

    public boolean isReadmark() {
        return readmark;
    }

    public void setReadmark(boolean readmark) {
        this.readmark = readmark;
    }


         public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }
    public Integer getTopicid() {
        return topicid;
    }

    public void setTopicid(Integer topicid) {
        this.topicid = topicid;
      //  System.out.println(this.topicid);
    }

    public Date getCreationdate() {
        return creationdate;
    }

    public void setCreationdate(Date creationdate) {
        this.creationdate = creationdate;
    }

    public Set<Filteredposts> getFilteredpostses() {
        return filteredpostses;
    }

    public void setFilteredpostses(Set<Filteredposts> filteredpostses) {
        this.filteredpostses = filteredpostses;
    }

    public Integer getIsclosed() {
        return isclosed;
    }

    public void setIsclosed(Integer isclosed) {
        this.isclosed = isclosed;
    }

    public Integer getIspopular() {
        return ispopular;
    }

    public void setIspopular(Integer ispopular) {
        this.ispopular = ispopular;
    }

    public Integer getIspublic() {
        return ispublic;
    }

    public void setIspublic(Integer ispublic) {
        this.ispublic = ispublic;
    }

    public Integer getIssticky() {
        return issticky;
    }

    public void setIssticky(Integer issticky) {
        this.issticky = issticky;
    }

    public JfMembers getJfMembers() {
        return jfMembers;
    }

    public void setJfMembers(JfMembers jfMembers) {
        this.jfMembers = jfMembers;
    }

    public Date getModifydate() {
        return modifydate;
    }

    public void setModifydate(Date modifydate) {
        this.modifydate = modifydate;
    }

    public Integer getNumlurkers() {
        return numlurkers;
    }

    public void setNumlurkers(Integer numlurkers) {
        this.numlurkers = numlurkers;
    }

    public Integer getNumofposts() {
        return numofposts;
    }

    public void setNumofposts(Integer numofposts) {
        this.numofposts = numofposts;
    }

    public Integer getNumofviews() {
        return numofviews;
    }

    public void setNumofviews(Integer numofviews) {
        this.numofviews = numofviews;
    }

    public Set<Posts> getPostses() {
        return postses;
    }

    public void setPostses(Set<Posts> postses) {
        this.postses = postses;
    }

    public Set<Readmark> getReadmarks() {
        return readmarks;
    }

    public void setReadmarks(Set<Readmark> readmarks) {
        this.readmarks = readmarks;
    }

    public Sections getSections() {
        return sections;
    }

    public void setSections(Sections sections) {
        this.sections = sections;
    }

    public String getTopicname() 
    {
        System.out.println("i am n get"+ topicname);
        return topicname;
    }

    public void setTopicname(String topicname) {
        System.out.println("set name"+ topicname);
        this.topicname = topicname;
    }

    public Posts[] getPostes() {
        return postes;
    }

    public void setPostes(Posts[] postes) {
        this.postes = postes;
    }

    /**
     * @return the allTopics
     */
    public Vector<Sections> getAllSections() {
        return allSections;
    }

    /**
     * @param allTopics the allTopics to set
     */
    public void setAllSections(Vector<Sections> allSections) {
        this.allSections = allSections;
    }
   
   
    /**
     * This is the action called from the Struts framework.
     * @param mapping The ActionMapping used to select this instance.
     * @param request The HTTP Request we are processing.
     * @return
     */
    public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
       
        return null;
    }
}
